package com.example.demo.controller;

import com.example.demo.aspect.TimeRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/test111")
@RestController
public class TestContronller {
    @RequestMapping("/t1")
    @TimeRecord
    public String t1(){
        log.info("执行t1方法");
        return "t1";
    }
}
